home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / RIncludes / UnicodeUtilities.r < prev    next >
Encoding:
Text File  |  2000-04-12  |  2.6 KB  |  77 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        UnicodeUtilities.r
  3.  
  4.      Contains:    Types, constants, prototypes for Unicode Utilities (Unicode input and text utils)
  5.  
  6.      Version:    Technology:    Mac OS 9.0
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    © 1997-1999 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __UNICODEUTILITIES_R__
  19. #define __UNICODEUTILITIES_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kUCKeyOutputStateIndexMask         0x4000
  26. #define kUCKeyOutputSequenceIndexMask     0x8000
  27. #define kUCKeyOutputTestForIndexMask     0xC000                /*  test bits 14-15 */
  28. #define kUCKeyOutputGetIndexMask         0x3FFF                /*  get bits 0-13 */
  29.  
  30. #define kUCKeyStateEntryTerminalFormat     0x0001
  31. #define kUCKeyStateEntryRangeFormat     0x0002
  32.  
  33. #define kUCKeyLayoutHeaderFormat         0x1002
  34. #define kUCKeyLayoutFeatureInfoFormat     0x2001
  35. #define kUCKeyModifiersToTableNumFormat  0x3001
  36. #define kUCKeyToCharTableIndexFormat     0x4001
  37. #define kUCKeyStateRecordsIndexFormat     0x5001
  38. #define kUCKeyStateTerminatorsFormat     0x6001
  39. #define kUCKeySequenceDataIndexFormat     0x7001
  40.  
  41. #define kUCKeyActionDown                 0                    /*  key is going down */
  42. #define kUCKeyActionUp                     1                    /*  key is going up */
  43. #define kUCKeyActionAutoKey             2                    /*  auto-key down */
  44. #define kUCKeyActionDisplay             3                    /*  get information for key display (as in Key Caps)             */
  45.  
  46. #define kUCKeyTranslateNoDeadKeysBit     0                    /*  Prevents setting any new dead-key states */
  47. #define kUCKeyTranslateNoDeadKeysMask     0x00000001
  48. #define kUnicodeCollationClass             'ucol'
  49.                                                             /*  Sensitivity options */
  50. #define kUCCollateComposeInsensitiveMask  0x00000002
  51. #define kUCCollateWidthInsensitiveMask     0x00000004
  52. #define kUCCollateCaseInsensitiveMask     0x00000008
  53. #define kUCCollateDiacritInsensitiveMask  0x00000010        /*  Other general options  */
  54. #define kUCCollatePunctuationSignificantMask  0x00008000    /*  Number-handling options  */
  55. #define kUCCollateDigitsOverrideMask     0x00010000
  56. #define kUCCollateDigitsAsNumberMask     0x00020000
  57.  
  58. #define kUCCollateStandardOptions         0x00000006
  59. #define kUCCollateTypeHFSExtended         1
  60. #define kUCCollateTypeSourceMask         0x000000FF
  61. #define kUCCollateTypeShiftBits         24
  62.  
  63. #define kUCCollateTypeMask                 0xFF000000
  64. #define kUnicodeTextBreakClass             'ubrk'
  65. #define kUCTextBreakCharMask             0x00000001
  66. #define kUCTextBreakClusterMask         0x00000004
  67. #define kUCTextBreakWordMask             0x00000010
  68. #define kUCTextBreakLineMask             0x00000040
  69.  
  70. #define kUCTextBreakLeadingEdgeMask     0x00000001
  71. #define kUCTextBreakGoBackwardsMask     0x00000002
  72. #define kUCTextBreakIterateMask         0x00000004
  73.  
  74.  
  75. #endif /* __UNICODEUTILITIES_R__ */
  76.  
  77.